package com.iefgames.cs.framework;

import org.mortbay.jetty.Connector;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.nio.SelectChannelConnector;
import org.mortbay.jetty.webapp.WebAppContext;

import com.iefgames.cs.framework.utils.DirectoryUtil;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
        Server server = new Server();
        
        Connector connector = new SelectChannelConnector();
        connector.setPort(8080);
        
        server.setConnectors(new Connector[] { connector });
        
        WebAppContext context = new WebAppContext(server, DirectoryUtil.SERVER_PATH, "/");
        
        try {
            server.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
	}

}
